import React, { Component } from 'react';
import CustomTab from 'common/containers/customTab.js';
import './bookSortTab.less';

class BookSortTab extends Component{
	
	constructor(props) {
	    super(props);
	    this.state = {
	    	tabClass: '_bookSortTab'
	    }
	}
	
	//选中栏目
	tabHandle = (index) => {
		this.props.tabHandle(index);
	}
	
	render(){
		return(
			<div className="bookSortTab">
				<CustomTab tabs={this.props.tabs} tabHandle={this.tabHandle} tabClass={this.state.tabClass}></CustomTab>
            </div>
		)
	}
}

export default BookSortTab;